//===========================================================================
// FILE: DownlinkModemParam.h
//
// By:   Chen Wei, wes-chen@163.com
//
// Date: 2013/8/19 16:14:19
//
//---------------------------------------------------------------------------
// Data Communication & Video Processing Lab. (Copyright(R)2008)
//===========================================================================

#ifndef _DownlinkModemParam_H_
#define _DownlinkModemParam_H_


// Parameter
//---------------------------------------------------------------------------
#define DLPHY_SAMPLE_PER_BIT            32//32
//-----sxy-------
#define DLPHY_SAMPLE_PER_BIT_AftDcm     32//32// 2024-07-17
#define DLPHY_SAMPLE_PER_BIT_multi    15//16//20
//---------------
#define DOWNLINK_FIFO_DEEP              1024

#define DLPHY_OUTPUT_GAIN               1
#define DLPHY_OUTPUT_DC_LEVEL          (1<<15)


#define DLPHY_CHAR_START_BIT_NUM        1
#define DLPHY_CHAR_DAT_BIT_NUM          8
#define DLPHY_CHAR_CHK_BIT_NUM          0
#define DLPHY_CHAR_STOP_BIT_NUM         1//3

#define DLPHY_CHAR_STOP_BIT_MSK         ((1<<DLPHY_CHAR_STOP_BIT_NUM)-1)

#define DLPHY_CHAR_LEN                  \
    (DLPHY_CHAR_START_BIT_NUM +         \
    DLPHY_CHAR_DAT_BIT_NUM +            \
    DLPHY_CHAR_CHK_BIT_NUM +            \
    DLPHY_CHAR_STOP_BIT_NUM)

#define DLPHY_BASEBAND_SYM_LEN   DLPHY_CHAR_LEN * DLPHY_SAMPLE_PER_BIT

//---------------------------------------------------------------------------



#ifdef __cplusplus
extern "C" {
#endif


/*******************************************************************************
//  FrameConstruct   version:  1.0   ? date: 12/27/2006
// -----------------------------------------------------------------------------
//  BASIC INFORMATION:
//    Filename:  OFDM_Frame.h
//    Date:      2006/12/27
//    Author:    Chen Wei, w.chen@263.net
//
//  INTRODUCTION:
//    this module implements frame constructing.
//
********************************************************************************
*              Copyright (C) 2006 HDTV Research Studio of UESTC                *
*                            All Rights Reserved                               *
*******************************************************************************/

/*******************************************************************************
//  CONTENTS:
//    1. training and synchronization frame generator
//    2. data frame generator
//    3. dynamic bit allocation table
//
//  MODIFY LIST:
//    No.  DD/MM/YYYY  Modifier              Modified Contents
//    --------------------------------------------------------------------------
//    1.
//
//
********************************************************************************
*              Copyright (C) 2006 HDTV Research Studio of UESTC                *
*                            All Rights Reserved                               *
*******************************************************************************/



#ifdef __cplusplus
}
#endif /* extern "C" */


#endif // _DownlinkModemParam_H_


//===========================================================================
// End of file.
//===========================================================================

